<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" dir="ltr" lang="en-US">
<![endif]-->
<!--[if IE 8]>
<html id="ie8" dir="ltr" lang="en-US">
<![endif]-->
<!--[if (!IE)]><!-->
<html dir="ltr" lang="en-US">
<!--<![endif]-->
<head>
<title>Mysports.tv</title>
<meta http-equiv="X-UA-Compatible" content="IE=9" >
	<link rel="stylesheet" type="text/css" href="../styles/all.css" media="all" />
	<style>
		html {
			background: #bae5f6;
		}

		body, header {
			background: none;
		}
		li {
			list-style: none;
		}
		#ms-map {
			margin: auto;
		}
		iframe {
			overflow-x: scroll !important;
			overflow-y: hidden !important;
		}
 
	</style>
	<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCiyKzg1HTjpaRl7HR5gyChrTWuWHmST9g&sensor=false&libraries=geometry"></script>		
	<link type="text/css" href="css/black-tie/jquery-ui-1.8.18.custom.css" rel="stylesheet" />	
	<script src="js/jquery-1.7.1.min.js"></script>
	<script src="js/jquery-ui-1.8.18.custom.min.js"></script>
	<script src="js/modernizr.js"></script>	
	<script src="js/xml2json.js"></script>
	<script src="js/label.js"></script>	
	<script src="mysports_routemap.js"></script>
	<meta charset="UTF-8" />
<title>Mysports.tv</title>
</head>
<body>
	<div id="dialog" title="Placemarker info" style="display:none;">
		<p>&nbsp;</p>
	</div>
	<div id="popup" title="Video" style="display:none;">
		<p>&nbsp;</p>
	</div>
	<div id="ms-map" style="width: 200px; height: 200px;"></div>
<script>
$(document).ready(function(){
	//namespaces();	
	var d = new Date();
	var sec = d.getTime();
	myXml.read({url: 'http://mirror.mysports.tv/runnerstv/bkup/googlemaps/RM12_map.xml?t=' + sec, callback: mysportsMap});	
	function mysportsMap (xmlObj) {
		mysportsAnimation.initMap({ 
								runnerEvent: xmlObj,
								height: '800px',
								urlkmlfile: "http://mirror.mysports.tv/runnerstv/bkup/googlemaps/RM12.kml?t="+sec,
								logoUrl: "http://mirror.mysports.tv/runnerstv/bkup/googlemaps/MySports_logo_CMYKzonderPayoff.png",
								domainUrl: 'http://mysports.tv/events/',
								startLatitude: 41.892239,
								startLongitude: 12.488900
							});
	}	
});

function namespaces () {
if (document.namespaces) {
		document.namespaces.add('v', 'urn:schemas-microsoft-com:vml', '#default#VML');
		//console.log('namespace added');
	}
}
</script>
</body>
</html>